home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / basic / ace24dist.lha / ace24.lha / include / prefs / printertxt.h < prev    next >
C/C++ Source or Header  |  1996-09-10  |  3KB  |  120 lines

  1. #ifndef PREFS_PRINTERTXT_H
  2. #define PREFS_PRINTERTXT_H 1
  3. /*
  4. ** printertxt.h for ACE Basic
  5. **
  6. ** Note: Translated to ACE by ConvertC2ACE
  7. **       @ MapMeadow Software, Nils Sjoholm
  8. **
  9. **
  10. ** Date: 09/03/95
  11. **
  12. **
  13. */
  14.  
  15. /*
  16. ** This are the StructPointer defines for printertxt.h
  17. */
  18. #ifndef PrinterTxtPrefsPtr
  19. #define PrinterTxtPrefsPtr ADDRESS
  20. #endif
  21. #ifndef PrinterUnitPrefsPtr
  22. #define PrinterUnitPrefsPtr ADDRESS
  23. #endif
  24. /*
  25. ** End of StructPointer defines for printertxt.h
  26. */
  27.  
  28.  
  29. /*****************************************************************************/
  30.  
  31.  
  32. #ifndef EXEC_TYPES_H
  33. #include <exec/types.h>
  34. #endif
  35.  
  36. #ifndef LIBRARIES_IFFPARSE_H
  37. #include <libraries/iffparse.h>
  38. #endif
  39.  
  40.  
  41. /*****************************************************************************/
  42.  
  43.  
  44. #define ID_PTXT 1347704916 
  45. #define ID_PUNT 1347767892 
  46.  
  47.  
  48. #define DRIVERNAMESIZE 30       /* Filename size     */
  49. #define DEVICENAMESIZE 32       /* .device name size */
  50.  
  51.  
  52. STRUCT PrinterTxtPrefs
  53.  
  54.     STRING pt_Reserved SIZE 16  /* 4*SIZEOF(LONGINT) */       /* SYSTEM reserved        */
  55.     STRING pt_Driver SIZE 30    /* DRIVERNAMESIZE    */  /* printer driver filename    */
  56.     BYTE  pt_Port           /* printer port connection    */
  57.  
  58.     SHORTINT pt_PaperType 
  59.     SHORTINT pt_PaperSize 
  60.     SHORTINT pt_PaperLength        /* Paper length in # of lines */
  61.  
  62.     SHORTINT pt_Pitch 
  63.     SHORTINT pt_Spacing 
  64.     SHORTINT pt_LeftMargin         /* Left margin            */
  65.     SHORTINT pt_RightMargin        /* Right margin       */
  66.     SHORTINT pt_Quality 
  67. END STRUCT 
  68.  
  69. /* constants for PrinterTxtPrefs.pt_Port */
  70. #define PP_PARALLEL 0
  71. #define PP_SERIAL   1
  72.  
  73. /* constants for PrinterTxtPrefs.pt_PaperType */
  74. #define PT_FANFOLD  0
  75. #define PT_SINGLE   1
  76.  
  77. /* constants for PrinterTxtPrefs.pt_PaperSize */
  78. #define PS_US_LETTER    0
  79. #define PS_US_LEGAL 1
  80. #define PS_N_TRACTOR    2
  81. #define PS_W_TRACTOR    3
  82. #define PS_CUSTOM   4
  83. #define PS_EURO_A0  5       /* European size A0: 841 x 1189 */
  84. #define PS_EURO_A1  6       /* European size A1: 594 x 841  */
  85. #define PS_EURO_A2  7       /* European size A2: 420 x 594  */
  86. #define PS_EURO_A3  8       /* European size A3: 297 x 420  */
  87. #define PS_EURO_A4  9       /* European size A4: 210 x 297  */
  88. #define PS_EURO_A5  10      /* European size A5: 148 x 210  */
  89. #define PS_EURO_A6  11      /* European size A6: 105 x 148  */
  90. #define PS_EURO_A7  12      /* European size A7: 74 x 105   */
  91. #define PS_EURO_A8  13      /* European size A8: 52 x 74    */
  92.  
  93. /* constants for PrinterTxtPrefs.pt_PrintPitch */
  94. #define PP_PICA  0
  95. #define PP_ELITE 1
  96. #define PP_FINE  2
  97.  
  98. /* constants for PrinterTxtPrefs.pt_PrintSpacing */
  99. #define PS_SIX_LPI   0
  100. #define PS_EIGHT_LPI 1
  101.  
  102. /* constants for PrinterTxtPrefs.pt_PrintQuality */
  103. #define PQ_DRAFT  0
  104. #define PQ_LETTER 1
  105.  
  106.  
  107. STRUCT PrinterUnitPrefs
  108.  
  109.     STRING pu_Reserved SIZE 16  /* 4*SIZEOF(LONGINT) */         /* SYSTEM reserved          */
  110.     LONGINT  pu_UnitNum              /* Unit number for OpenDevice() */
  111.     LONGINT pu_OpenDeviceFlags          /* Flags for OpenDevice()   */
  112.     STRING pu_DeviceName SIZE 32  /* DEVICENAMESIZE */   /* NAME FOR OpenDevice()    */
  113. END STRUCT 
  114.  
  115.  
  116. /*****************************************************************************/
  117.  
  118.  
  119. #endif /* PREFS_PRINTERTXT_H */
  120.